package com.link2room.soundwave.controller.inside;


import com.link2room.common.dto.result.base.BaseResultDto;
import com.link2room.soundwave.dto.param.inside.PmsRmtypeInsideParamDto;
import com.link2room.soundwave.util.HandlerUtil;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by VegetaKo on 2016/9/12.
 */
@Api(tags = "PMS房型相关")
@RestController
@RequestMapping("/in/PMSRmtypes")
public class PMSRmtypeInsideController {

    @RequestMapping(method = RequestMethod.POST)
    public BaseResultDto NewRmtype(
            @RequestBody PmsRmtypeInsideParamDto pmsRmtypeInsideParamDto) throws Exception {
        BaseResultDto l2rRs = new BaseResultDto();
        l2rRs.setResultCode(0);
        HandlerUtil.pmsRmtypeHandler().saveOrUpdateRmtypeHandler(pmsRmtypeInsideParamDto);
        return l2rRs;
    }

}
